/**
 * copyright (C), 2018-2020
 * fileName: LambdaTest
 * author:   hatricks
 * date:     2020-01-07 14:31
 * description: Lambda表达式测试
 */
package com.mybatispluslambda.lambda;

/**
 * Lambda表达式测试
 *
 * @author hatricks
 * @create 2020-01-07 14:31
 * @since 1.0.0
 */
public class LambdaTest {

    /**
     * Lambda表达式的核心是返回固定的调用点:
     * 1.不捕捉参数的常量对象
     * 2.捕捉参数的变量对象
     * <p>
     * ..Lambda表达式核心关注的是方法的参数以及返回值
     *
     * @param args
     */
    public static void main(String[] args) {
        Test test = () -> "null";
        Test test1 = () -> "null";
        Test test2 = () -> "null";
        System.out.println(test.test());
    }

    public String xxx() {
        return "";
    }

    interface Test {
        String test();
    }
}